﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes {

    public class Set {

        protected var m_data:XML;
        protected var m_name:String;
        protected var m_icon:String;
        protected var m_items:Array;

        public function Set(_arg1:XML){
            var _local2:XML;
            super();
            this.m_name = _arg1.@name;
            this.m_icon = Global.getAssetURL(_arg1.@icon);
            this.m_items = new Array();
            for each (_local2 in _arg1.setItem) {
                this.m_items.push(_local2.@name);
            };
            this.m_data = _arg1;
        }
        public function getName():String{
            return (this.m_name);
        }
        public function getIcon():String{
            return (this.m_icon);
        }
        public function getTotalNumItems():int{
            return (this.m_items.length);
        }
        public function getItemsInSet():Array{
            return (this.m_items);
        }
        public function isItemInSet(_arg1:String):Boolean{
            var _local2:String;
            for each (_local2 in this.m_items) {
                if (_local2 == _arg1){
                    return (true);
                };
            };
            return (false);
        }

    }
}//package Classes 
